projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9181be6
)
Add a comment to emacs_memftime, explaining why it needs to loop.
author
Paul Eggert
<eggert@twinsun.com>
Wed, 9 Sep 1998 21:33:50 +0000
(21:33 +0000)
committer
Paul Eggert
<eggert@twinsun.com>
Wed, 9 Sep 1998 21:33:50 +0000
(21:33 +0000)
src/editfns.c
patch
|
blob
|
history
diff --git
a/src/editfns.c
b/src/editfns.c
index 619280d73d549296c6fd983bd1a287d07a7b6aa0..cf88d69d23b0c2d755b9a613f04822bdf760e7a4 100644
(file)
--- a/
src/editfns.c
+++ b/
src/editfns.c
@@
-866,6
+866,11
@@
emacs_memftime (s, maxsize, format, format_len, tp)
{
size_t total = 0;
+ /* Loop through all the null-terminated strings in the format
+ argument. Normally there's just one null-terminated string, but
+ there can be arbitrarily many, concatenated together, if the
+ format contains '\0' bytes. emacs_strftime stops at the first
+ '\0' byte so we must invoke it separately for each such string. */
for (;;)
{
size_t len;